package com.samphanie.auiu.library.restful

import java.io.IOException

/**
 * @author Dries
 **/
interface AuiuCall<T> {

    @Throws(IOException::class)
    fun execute(): AuiuResponse<T>

    fun enqueue(callback: AuiuCallback<T>)

    interface Factory {
        fun newCall(request: AuiuRequest): AuiuCall<*>
    }

}